package com.hjm.system.domain.suser;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hjm.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


@Getter
@Setter
@ToString
@TableName("tb_sys_user")
public class SysUser extends BaseEntity {

    // 使用 雪花算法 来写 ID （UUID 太长（128），字符不易记忆）
    @TableId(value = "USER_ID",type = IdType.ASSIGN_ID)
    private Long userId;

    private String userAccount;
    private String password;

    private String nickName;

    public static void main(String[] args) {
        SysUser sysUser = new SysUser();
        sysUser.setUserAccount("123546");
        sysUser.setPassword("123456");
        System.out.println(sysUser.toString());

    }
}
